import { createApp } from 'vue'
import { createRouter, createWebHistory } from 'vue-router'
import App from './App.vue'
import Home from './views/Home.vue'
import Search from './views/Search.vue'
import Vulnerabilities from './views/Vulnerabilities.vue'
import Samples from './views/Samples.vue'
import About from './views/About.vue'

// 创建路由
const router = createRouter({
    history: createWebHistory(),
    routes: [
        { path: '/', component: Home },
        { path: '/search', component: Search },
        { path: '/vulnerabilities', component: Vulnerabilities },
        { path: '/samples', component: Samples },
        { path: '/about', component: About }
    ]
})

// 创建 Vue 应用
const app = createApp(App)

// 使用路由
app.use(router)

// 挂载应用
app.mount('#app') 